#ifndef BABYENGINE_PLAYER_CLASS_H__
#define BABYENGINE_PLAYER_CLASS_H__

#include "Object.h"

/**
 * @brief
 *
 *
 *
 * @remarks
 *
 *
 *
 * @see Game
 *
 * @author
 *
 * @version
 *
 */
class Player
{
public:

	Player();
	Player( const String& nick, Object& obj, const Cor& cor  );

	Player( const Player& rhs );
	Player& operator=( const Player& rhs );

	void respawn(void);

	void setSpawnPoint(const Vetor2d& sp);
	const Vetor2d& getSpawnPoint(void) const;
	const String& getNick(void) const;

	bool damage( double dano );
	double getLife(void) const;
	bool isDead(void) const;
	bool isConnected(void) const;
	Object& getObjeto(void);


protected:

	Vetor2d _spawnPoint;
	String _nick;
	/// De 0 (morto) a 100
	double _life;
	Object* _objeto;
	unsigned int _killCount;
	bool _connected;

};

#endif /* BABYENGINE_PLAYER_CLASS_H__ */
